package zy;

import java.util.Scanner;

public class cj {
    public static void main(String[] args) {
        double a,b;
        Scanner sc = new Scanner(System.in);
        System.out.println("输入语文成绩");
        double yu = sc.nextInt();
        System.out.println("输入数学成绩");
        double so = sc.nextInt();
        System.out.println("输入英语成绩");
        double ye = sc.nextInt();
        a=yu+so+ye;  //总分
        b=a/3;//平均分
        System.out.println("总分"+a);
        System.out.println("平均分"+b);



    }
}
